/*******************************************************************************
 * Copyright (c) 2010 Mikhail Garber.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser Public License (LGPL)
 * which accompanies this distribution
 * 
 * Contributors:
 *     Mikhail Garber - initial API and implementation
 ******************************************************************************/
package plumber.component;

/**
 * Strategy for determining delay for retrying of individual Steps
 * Implementors may choose exponential delay, etc.
 * @author mgarber
 *
 */
public interface RetryStrategy {

	/**
	 * by how many seconds the retry of Step execution needs to be delayed
	 * @param count - current retry count
	 * @return - number of seconds
	 */
	public int getDelaySecondsForRetryCount(int count);
}
